﻿@model IEnumerable<SchoolProject2012.Areas.Pedagogie.Models.PROFESSEUR>

@{
    ViewBag.Title = "Liste des professeurs";
  
}
<a data-next="#section3" data-prior="#section2" href="#" id="arrow1" class="next-section"></a>
<h2>Liste des professeurs</h2>

<p>
    @Html.ActionLink("Ajouter un professeur", "Create",null, new { @class = "link" })
</p>
<table id="hor-minimalist-a">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.NOMPERS)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PRENOMPERS)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.NOMPERS)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PRENOMPERS) 
        </td>
        <td>
                   
            @Html.ActionLink("Details", "Details", new { id = item.LOGINPERS }, new { @class = "link" }) |
            @Html.ActionLink("Modifier", "Edit", new { id = item.LOGINPERS }, new { @class = "link" }) |
            @Html.ActionLink("Supprimer", "Delete", new { id = item.LOGINPERS }, new { @class = "link" })
        </td>
    </tr>
}

</table>
